package com.bawei.domain.request;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Data
public class DocInfoReq implements Serializable {

    private String indexName;

    private List<Map<String, Object>> datas;

    private boolean isNeedId = false;

    private String idField;

    public static void main(String[] args) {
        DocInfoReq docInfoReq = new DocInfoReq();

        docInfoReq.setIndexName("indexName");
        docInfoReq.setNeedId(true);
        docInfoReq.setIdField("pid");
        //构建文档数据
        ArrayList<Map<String, Object>> datas = new ArrayList<>();


    }


}
